<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //扩展运算符用于 数组和对象
         let arr1 = [1,4,34,56]
        let arr2 = ['a','s','jh'];
        console.log(Math.max(...arr1));
        console.log([...arr1,...arr2]);

        let obj1 = {
            name:'qq',
            age:3
        }
        let n = {...obj1}
        let obj2 = {
            gender:'ff'
        }
        console.log(n);
        let obj3 = {
            ...obj1,
            ...obj2
        }
        console.log(obj3);
        console.log({...obj1,...obj2});


        //unicode表情包 
        console.log('\u{1F602}');
    </script>
</body>
</html>